<?
if(isset($_GET['kleur'])){
	echo '<h4 class="alert_success">Kleur is gewijzigd</h4>';
}
?>
<section id="main" class="column">
            <!-- announcements -->
            <?php foreach ($this->announcements as $announcement) { ?>
            <article class="module width_half" style="float:left;">
                <header><h3><?=$announcement->title?></h3> <h5>Geplaats op: <?=$announcement->date?></h5></header>
                <div class="module_content">
                    <p><?=$announcement->content?></p>
                </div>
            </article>
            <div class="spacer"></div>
            <?php }
			?>
             <article class="module width_half" style="float:right;">
                 <header><h3>Instellingen</h3></header>
                 
           	<form style="padding:20px;" method="post" action="<?=$this->baseUrl();?>/administrator/index?kleur">
               <select name="color">
                    <option<? if($this->huidigeKleur == 'Groen'){echo ' selected="selected"';}?>>Groen</option>
                    <option<? if($this->huidigeKleur == 'Rood'){echo ' selected="selected"';}?>>Rood</option>
                    <option<? if($this->huidigeKleur == 'Paars'){echo ' selected="selected"';}?>>Paars</option>
                    <option<? if($this->huidigeKleur == 'Beige'){echo ' selected="selected"';}?>>Beige</option>
               </select>
               <input type="submit" value="Verander kleur" style="margin:5px;"/>
            </form>
            </article>
</section>